using System;
using System.Drawing;

using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace Socialite
{
	public partial class ViewModeSelectorCell : UITableViewCell
	{		
		public ViewModeSelectorCell () : base ()
		{
		}
		
		public ViewModeSelectorCell(IntPtr handle) : base(handle)
		{
		}
		
		public void BindDataToCell (IMultiViewScreen screen)
		{
			ModeSelector.AutoresizingMask = UIViewAutoresizing.FlexibleWidth;
			ModeSelector.ValueChanged += (sender, e) => 
			{
				screen.LoadView ((Segment)(ModeSelector.SelectedSegment));
			};
		}
	}
}

